package com.ruoyi.appointment.mapper;

import java.util.List;

import com.ruoyi.appointment.domain.BusAppointment;
import com.ruoyi.appointment.domain.vo.BusAppointmentVo;
import org.apache.ibatis.annotations.Param;

/**
 * 预约
 * Mapper接口
 *
 * @author ruoyi
 * @date 2023-09-14
 */
public interface BusAppointmentMapper {
    /**
     * 查询预约
     *
     * @param id 预约
     *           主键
     * @return 预约
     */
    public BusAppointment selectBusAppointmentById(Long id);

    /**
     * 查询预约
     * 列表
     *
     * @param busAppointment 预约
     * @return 预约
     * 集合
     */
    public List<BusAppointment> selectBusAppointmentList(BusAppointment busAppointment);

    /**
     * 新增预约
     *
     * @param busAppointment 预约
     * @return 结果
     */
    public int insertBusAppointment(BusAppointment busAppointment);

    /**
     * 修改预约
     *
     * @param busAppointment 预约
     * @return 结果
     */
    public int updateBusAppointment(BusAppointment busAppointment);

    /**
     * 删除预约
     *
     * @param id 预约
     *           主键
     * @return 结果
     */
    public int deleteBusAppointmentById(Long id);

    /**
     * 批量删除预约
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBusAppointmentByIds(Long[] ids);

    /**
     * 已到店
     *
     * @param id
     * @return
     */
    int updateArrival(Long id);

    /**
     * 更新状态
     *
     * @param id
     * @return
     */
    int updateStatus(@Param("id") Long id, @Param("status") int status);


}
